.\"
.\" Copyright (c) 2015-2019 Franco Fichtner <franco@opnsense.org>
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd August 22, 2019
.Dt OPNSENSE-VERIFY 8
.Os
.Sh NAME
.Nm opnsense-verify
.Nd OPNsense signature verification
.Sh SYNOPSIS
.Nm
.Op Fl q
.Op Fl r Ar reponame
.Ar file
.Nm
.Fl a
.Sh DESCRIPTION
The
.Nm
utility verifies
.Fx Ap s
.Xr pkg 8
signatures on arbitrary files.
A separate file containing the signature with the
.Sq .sig
extension must be present in order to verify against.
.Pp
Please note that signature verification only works
against a single given repository for safety reasons.
.Pp
The options are as follows:
.Bl -tag -width ".Fl r Ar reponame" -offset indent
.It Fl a
Output the current system ABI string.
.It Fl q
Do not output text.
.It Fl r Ar reponame
Use the repository name
.Ar reponame
to find signature information.
The default is
.Sq OPNsense .
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr pkg.conf 5 ,
.Xr opnsense-sign 8 ,
.Xr pkg 8
.Sh AUTHORS
.An Franco Fichtner Aq Mt franco@opnsense.org
